package thinkinjava1.ch10;

import java.io.FileInputStream;
import java.io.ObjectInputStream;

/**
 * Created by BobbyGu on 2017/2/24.
 */
public class ThawAlien {
    static String baseDir = "src/thinkinjava1.ch10/file_dir/";

    public static void main(String[] args) throws Exception {
        ObjectInputStream in =
                new ObjectInputStream(
                        new FileInputStream(baseDir + "file.x"));
        Object mystery = in.readObject();
        System.out.println(mystery.getClass().toString());
    }
}
